//
//  MyArray.m
//  类型通配符
//
//  Created by 李煜 on 2023/9/12.
//

#import "MyArray.h"

@implementation MyArray

- (void)addObj:(id)obj{
    [self.array addObject:obj];
}
- (instancetype)init {
    self = [super init];
    if (self ){
        self.array = [[NSMutableArray alloc]init];
    }
    return self;
}
- (NSString *)description {
    NSMutableString *str = [NSMutableString string];

    for (NSInteger i = 0 ; i<self.array.count;i++) {
        [str appendFormat:@"%@\t",self.array[i]];
    }
    return  str;
}
@end
